package org.codetranslators.compiler.tiger.abssyntree;


public class VarDec extends Dec {
   private Symbol name;
   private boolean escape = true;
   private  NameTy typ; /* optional */
   private Exp init;
   
   public VarDec(int p, Symbol n, NameTy t, Exp i) 
   {
	   pos=p; 
	   name=n; 
	   typ=t; 
	   init=i;
	}
   
   public Symbol getName()
   {
	   return name;
   }
   
   public boolean getEscape()
   {
	   return escape;
   }
   
   public NameTy getNameTy()
   {
	   return typ;
   }
   
   public Exp getInitExpression()
   {
	   return init;
   }
}
